<?php

class chat extends subapplication
{

    private $cmd;
    public static $PROTOCOL = "CHAT";

    public static function create(commasnd $cmd)
    {
        if (!self::IsThisClass($cmd)) return null;

        $N = new chat($cmd);
        return $N;
    }

    public function __construct(command $cmd)
    {
        
    }

    public function execute()
    {
        
    }

    public function result()
    {
        
    }

    /*
     * check to see if command is a UPLOAD
     */

    public static function IsThisClass(command $cmd)
    {

        if (!$cmd->HasDataKey('TEXT')) return false; 
        if (!$cmd->HasDataKey('DATETIME')) return false; 


        return true;
    }

}

?>
